package com.nulgame.bukkit.plugin.responsebuilder;

import com.nulgame.bukkit.plugin.resource.Resource;


public class AntiServerAddressResponseBuilder extends GenericResponseBuilder {
	private String m_serverAddress;
	public AntiServerAddressResponseBuilder(String responseFormat, String playerName, String message, String serverAddress) {
		super(responseFormat, playerName, message); 
		m_serverAddress = serverAddress;
	}
	@Override
	public String toResponse() {
		String response = super.toResponse();
		if(response == null){
			return null;
		}
		response = response.replaceAll(Resource.SERVER_ADDRESS_VARIABLE, m_serverAddress);
		return response;
	}

}
